package ar.edu.itba.pod.legajo45129.simul.communication.payload;

import com.google.common.base.Preconditions;

import ar.edu.itba.pod.simul.communication.payload.NodeAgentLoadPayload;

public class NodeAgentLoadPayloadImpl implements NodeAgentLoadPayload {
	/**
	 * 
	 */
	private static final long serialVersionUID = -7215098823857843416L;
	
	private int load;

	public NodeAgentLoadPayloadImpl(int agentsCount) {
		Preconditions.checkState(agentsCount >= 0);
		load = agentsCount;
	}

	@Override
	public int getLoad() {
		return load;
	}

}
